#!/usr/bin/env python
import sys

canal = sys.argv[1]+"/"+sys.argv[2]
context=sys.argv[3]
extension=sys.argv[4]
cf = open("/var/spool/asterisk/outgoing/"+sys.argv[2]+".call",'w+')
cf.write("Channel:"+canal+"\nMaxRetries:2\ncontext:"+context+"\nextension:"+extension+"\npriority:1\nRetryTime:10\nWaitTime:20\n")

